package com.yun.zhong.fu.usercenter;

import com.yun.zhong.fu.usercenter.rocketmq.MySink;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.stream.annotation.EnableBinding;
import org.springframework.cloud.stream.messaging.Sink;


//扫描此包的所有接口
@MapperScan("com.yun.zhong.fu.usercenter.dao")
@SpringBootApplication
//让stream-cloud-rocketmq消费者生效
@EnableBinding({Sink.class, MySink.class})
public class UserCenterApplication {

    public static void main(String[] args) {
        SpringApplication.run(UserCenterApplication.class, args);
    }

}
